package com.pingan.agentbank.aaos.task;

import com.pingan.agentbank.aaos.pojo.Config;
import com.pingan.agentbank.aaos.service.CleanService;
import com.pingan.vframe.db.DBTask;
import com.pingan.vframe.lang.Inject;

public class BackUpCleanTask extends DBTask {


    @Inject
    CleanService cleanService;

    private Config config;

    public Config getConfig() {
        return config;
    }

    public void setConfig(Config config) {
        this.config = config;
    }

    @Override
    protected void execute() throws InterruptedException {

        cleanService.BackUpClean(config);
    }
}
